package com.mentaleye.dal.service;

import com.mentaleye.dal.model.AssessmentAnswer;
import com.mentaleye.dal.model.AssessmentAnswerExample;
import com.mentaleye.dal.model.AssessmentAnswerKey;
import com.mentaleye.dal.model.AssessmentAnswerWithBLOBs;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AssessmentAnswerMapper {
    int countByExample(AssessmentAnswerExample example);

    int deleteByExample(AssessmentAnswerExample example);

    int deleteByPrimaryKey(AssessmentAnswerKey key);

    int insert(AssessmentAnswerWithBLOBs record);

    int insertSelective(AssessmentAnswerWithBLOBs record);

    List<AssessmentAnswerWithBLOBs> selectByExampleWithBLOBs(AssessmentAnswerExample example);

    List<AssessmentAnswer> selectByExample(AssessmentAnswerExample example);

    AssessmentAnswerWithBLOBs selectByPrimaryKey(AssessmentAnswerKey key);

    int updateByExampleSelective(@Param("record") AssessmentAnswerWithBLOBs record, @Param("example") AssessmentAnswerExample example);

    int updateByExampleWithBLOBs(@Param("record") AssessmentAnswerWithBLOBs record, @Param("example") AssessmentAnswerExample example);

    int updateByExample(@Param("record") AssessmentAnswer record, @Param("example") AssessmentAnswerExample example);

    int updateByPrimaryKeySelective(AssessmentAnswerWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(AssessmentAnswerWithBLOBs record);

    int updateByPrimaryKey(AssessmentAnswer record);

    List<Map<String, Object>> selectByMap(Map<String, Object> paramMap);
}